package cn.itsource.user.mapper;

import cn.itsource.system.domain.TMenu;
import cn.itsource.user.domain.Logininfo;
import cn.itsource.basic.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 26871
 * @since 2024-05-10
 */
public interface LogininfoMapper extends BaseMapper<Logininfo> {

    void disable(Long id);

    void enable(Long id);

    void emailRegisterActive(Long id);

    Logininfo selectByUsername(String username);

    List<TMenu> selectMenusByLogininfoId(Long id);

    List<String> selectPermissionsByLogininfoId(Long id);
}
